Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dataset logic #771

Merged
merged 8 commits into from
Jul 19, 2024
Merged

Fix dataset logic #771

merged 8 commits into from
Jul 19, 2024

Conversation

lbluque
Copy link
Collaborator

@lbluque lbluque commented Jul 18, 2024

These two lines edited in #742

if self.config["val_dataset"]:

if self.config["test_dataset"]:

would set val and test datasets to have the same "src" as the training set in cases where they are not defined at all in a config. An explicit check that their own "src" is defined should fix the issue.

@lbluque lbluque requested review from zulissimeta and misko July 18, 2024 02:04
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 78.57143% with 3 lines in your changes missing coverage. Please review.

Files Coverage Δ
src/fairchem/core/trainers/base_trainer.py 85.53% <78.57%> (+0.06%) ⬆️

zulissimeta
zulissimeta previously approved these changes Jul 18, 2024
Copy link
Collaborator

@zulissimeta zulissimeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me. Thanks for catching!

A lot of this would be cleaner if we had the configs sanitized and/or forced to follow a convention. We should probably do that at some point.

@lbluque
Copy link
Collaborator Author

lbluque commented Jul 18, 2024

blocked by #770

@mshuaibii mshuaibii dismissed zulissimeta’s stale review July 18, 2024 23:36

The merge-base changed after approval.

@lbluque lbluque requested a review from rayg1234 July 19, 2024 16:46
Copy link
Collaborator

@zulissimeta zulissimeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM =)

@lbluque lbluque enabled auto-merge July 19, 2024 16:57
@lbluque lbluque added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit 9abc429 Jul 19, 2024
7 checks passed
@lbluque lbluque deleted the fix-dataset-logic branch July 19, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants